package com.openbravo.pos.printer.ticket;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

public class PrintItemImage
  implements PrintItem
{
  protected BufferedImage image;
  protected double scale;

  public PrintItemImage(BufferedImage paramBufferedImage, double paramDouble)
  {
    this.image = paramBufferedImage;
    this.scale = paramDouble;
  }

  public void draw(Graphics2D paramGraphics2D, int paramInt1, int paramInt2, int paramInt3)
  {
    paramGraphics2D.drawImage(this.image, paramInt1 + (paramInt3 - (int)(this.image.getWidth() * this.scale)) / 2, paramInt2, (int)(this.image.getWidth() * this.scale), (int)(this.image.getHeight() * this.scale), null);
  }

  public int getHeight()
  {
    return (int)(this.image.getHeight() * this.scale);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.printer.ticket.PrintItemImage
 * JD-Core Version:    0.6.0
 */